package com.tsj.model.controller;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author taoshujian
 * @version 1.0
 * @since 2025-09-24 11:15:56
 */
@RestController
@Tag(name = "Swagger", description = "Springdoc OpenAPI 的测试类")
@Hidden
public class SwaggerController {
    
    @Operation(summary = "get方法", description = "会返回一个简单提示")
    @ApiResponses(value = {
            @ApiResponse(responseCode = "200", description = "请求成果")
    })
    @GetMapping("/swagger")
    public String swagger() {
        return "Hello, Spring Boot Web!";
    }

}